import org.springframework.boot.sampleconfig.MyComponent;

beans {
    myGroovyComponent(MyComponent) {}
}